Integrand size = 33, antiderivative size = 221 \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=-\frac {2 \left (3 b^2 B+5 a (2 A b+a B)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 \left (3 a^2 A+A b^2+2 a b B\right ) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 \left (3 b^2 B+5 a (2 A b+a B)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 b (5 A b+7 a B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 b B \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{5 d} \]
[Out]
Time = 0.35 (sec) , antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {4111, 4132, 3853, 3856, 2719, 4131, 2720} \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=\frac {2 \left (3 a^2 A+2 a b B+A b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 \left (5 a (a B+2 A b)+3 b^2 B\right ) \sin (c+d x) \sqrt {\sec (c+d x)}}{5 d}-\frac {2 \left (5 a (a B+2 A b)+3 b^2 B\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 b (7 a B+5 A b) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d}+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))}{5 d} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3853
Rule 3856
Rule 4111
Rule 4131
Rule 4132
Rubi steps \begin{align*} \text {integral}& = \frac {2 b B \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{5 d}+\frac {2}{5} \int \sqrt {\sec (c+d x)} \left (\frac {1}{2} a (5 a A+b B)+\frac {1}{2} \left (3 b^2 B+5 a (2 A b+a B)\right ) \sec (c+d x)+\frac {1}{2} b (5 A b+7 a B) \sec ^2(c+d x)\right ) \, dx \\ & = \frac {2 b B \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{5 d}+\frac {2}{5} \int \sqrt {\sec (c+d x)} \left (\frac {1}{2} a (5 a A+b B)+\frac {1}{2} b (5 A b+7 a B) \sec ^2(c+d x)\right ) \, dx+\frac {1}{5} \left (3 b^2 B+5 a (2 A b+a B)\right ) \int \sec ^{\frac {3}{2}}(c+d x) \, dx \\ & = \frac {2 \left (3 b^2 B+5 a (2 A b+a B)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 b (5 A b+7 a B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 b B \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{5 d}+\frac {1}{3} \left (3 a^2 A+A b^2+2 a b B\right ) \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{5} \left (-3 b^2 B-5 a (2 A b+a B)\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx \\ & = \frac {2 \left (3 b^2 B+5 a (2 A b+a B)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 b (5 A b+7 a B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 b B \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{5 d}+\frac {1}{3} \left (\left (3 a^2 A+A b^2+2 a b B\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\frac {1}{5} \left (\left (-3 b^2 B-5 a (2 A b+a B)\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx \\ & = -\frac {2 \left (3 b^2 B+5 a (2 A b+a B)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 \left (3 a^2 A+A b^2+2 a b B\right ) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 \left (3 b^2 B+5 a (2 A b+a B)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 b (5 A b+7 a B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 b B \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{5 d} \\ \end{align*}
Time = 3.99 (sec) , antiderivative size = 171, normalized size of antiderivative = 0.77 \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=\frac {\sec ^{\frac {5}{2}}(c+d x) \left (-12 \left (10 a A b+5 a^2 B+3 b^2 B\right ) \cos ^{\frac {5}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+20 \left (3 a^2 A+A b^2+2 a b B\right ) \cos ^{\frac {5}{2}}(c+d x) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+2 \left (15 \left (2 a A b+a^2 B+b^2 B\right )+10 b (A b+2 a B) \cos (c+d x)+3 \left (10 a A b+5 a^2 B+3 b^2 B\right ) \cos (2 (c+d x))\right ) \sin (c+d x)\right )}{30 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(722\) vs. \(2(249)=498\).
Time = 40.82 (sec) , antiderivative size = 723, normalized size of antiderivative = 3.27
method | result | size |
default | \(\text {Expression too large to display}\) | \(723\) |
parts | \(\text {Expression too large to display}\) | \(914\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 286, normalized size of antiderivative = 1.29 \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=-\frac {5 \, \sqrt {2} {\left (3 i \, A a^{2} + 2 i \, B a b + i \, A b^{2}\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 \, \sqrt {2} {\left (-3 i \, A a^{2} - 2 i \, B a b - i \, A b^{2}\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 3 \, \sqrt {2} {\left (5 i \, B a^{2} + 10 i \, A a b + 3 i \, B b^{2}\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 3 \, \sqrt {2} {\left (-5 i \, B a^{2} - 10 i \, A a b - 3 i \, B b^{2}\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {2 \, {\left (3 \, B b^{2} + 3 \, {\left (5 \, B a^{2} + 10 \, A a b + 3 \, B b^{2}\right )} \cos \left (d x + c\right )^{2} + 5 \, {\left (2 \, B a b + A b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, d \cos \left (d x + c\right )^{2}} \]
[In]
[Out]
Timed out. \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{2} \sqrt {\sec \left (d x + c\right )} \,d x } \]
[In]
[Out]
\[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{2} \sqrt {\sec \left (d x + c\right )} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 (A+B \sec (c+d x)) \, dx=\int \left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^2\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]